package com.mtolstykh.data;

import com.mtolstykh.enums.Priority;
import com.mtolstykh.enums.Status;
import com.mtolstykh.utils.Utils;

public class PMObject extends Entity {	
	
	private String 				comments;
	private Priority 			priority;	
	private String 				description;
	private Status 				status;
	private String				creator;
	
	
	public PMObject() {		
		super();
		this.creator = Utils.userName();
		this.priority = Priority.MINIMUM;
		this.status = Status.NEW;
	}
		
	public PMObject(String comments, String description, String name) {
		super(name);
		this.comments = comments;
		this.description = description;		
		this.creator = Utils.userName();
		this.priority = Priority.MINIMUM;
		this.status = Status.NEW;
	}
	
	
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	
	
	public String getCreator() {
		return creator;
	}

	
	
	
	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getComments() {
		return comments;
	}

	public void setPriority(Priority priority) {
		this.priority = priority;
	}

	/**
	 * @return the priority
	 */
	public Priority getPriority() {
		return priority;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Status status) {
		this.status = status;
	}

	/**
	 * @return the status
	 */
	public Status getStatus() {
		return status;
	}
}
